package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.*;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Table("db_c")
@ApiModel("C表")
public class C implements Entity {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", remarks = "主键", type = IdType.GUID)
    private String id;

    @ApiModelProperty(value = "D表主键")
    @TableFk(pkEntity = D.class, pkField = "id")
    private String dId;

    @TableColumn(remarks = "电话", size = 20, nullable = false)
    @TableUk
    private String phone;
}
